package com.example.online_order.service;

import com.example.online_order.pojo.Evalate;
import com.example.online_order.pojo.Orders;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(readOnly = true)
public interface EvalateService {
    public List<Evalate> selectAllEva();


    public List<Evalate> getByUserName(String userName);


    public List<Evalate> getByUserId(Integer userId);


    public List<Evalate> getByMealId(Integer mealId);


    public List<Evalate> getByMealName(String mealName);


    public List<Evalate> getByMealLevel(Integer mealLevel);

    public List<Evalate> selectevaLikeUserMeal(String userName, String mealName);

    public Integer addEva(Evalate evalate);

    public Integer deleteEva(Integer id);

    public Integer updateEva(Evalate evalate);

}
